<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <meta name="author" content="Flying hormone" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta charset="UTF-8">
        <link rel="stylesheet" href="../css/media.css" />
        <link rel="stylesheet" href="../css/mui.min.css" />
        <link rel="stylesheet" href="../css/head_foot.css" />
        <script type="text/javascript" src="../js/jquery-1.9.1.js"></script>
        <script type="text/javascript" src="../js/jquery.Query.js" ></script>
        <script type="text/javascript" src="../js/jquery-cookie.js"></script>
        <script type="text/javascript" src="../js/mui.min.js"></script>
        <script type="text/javascript" src="../js/appcan.js"></script>
        <script type="text/javascript" src="../js/appcan.control.js"></script>
        <script type="text/javascript" src="../js/common.js" ></script>
		<title>我的发布</title>
		<style>
            
            
            section{ background: #fff; margin-top: 0.625em;}
            section div{ height: auto; background: #fff; overflow: hidden;}
            section h3{ font-size: 1em; font-weight: bold; height: 3em; line-height: 3em; float: left; text-indent: 1em;}
            section p{ float: right; height: 3em; line-height: 3em;}
            section p span{ margin-top: 0.375em; margin-right: 0.3em;}
            section p a{font-size: 1em; color: #ff3366; border: 1px solid #ff3366; padding: 0 0.6em; border-radius: 0.3125em; margin-right: 0.5em;}
            section i{ font-style: normal; font-weight: normal; font-size: 0.8em; margin-left: 1em; color: #666;}
            section li{  line-height: 3.125em; border-top: 1px solid #ccc; clear: both;}
            section h4{ color: #666; line-height: 3.125em; float: left; margin-left: 1.25em;  margin-left: 4em; font-size: 0.8em;}
            li p{ float: right; margin-right: 0.625em;}
            /*section li a{ color: #ccc; border: 1px solid #ccc; padding: 0 0.225em; border-radius: 0.3125em;}*/
            section .mui-icon{ font-size: 1.5em;}
            .toptop,.bottombottom{ margin-top: 1.25em; margin-right: 1em}
            .shouqi{ display: none;}
            .mui-media{ position:relative; width: 85%; left: 15%; padding-left: 0; margin-left: -0.625em;}
            section p.mui-ellipsis{ float: none;}
            .mui-media-body,section p.mui-ellipsis{ text-indent: 1em;}
            .mui-media-body i{ position: absolute; top: 0; right: 0; border: 1px solid #ff3366; color: #ff3366; border-radius: 0.3em; text-indent: 0; padding: 0 0.5em;}
            
            .shouqi li{ padding: 0.625em 1em; line-height: 1.25em; height: auto; overflow: hidden; color: #666; font-size: 0.8em;}
            section div.tu_tu{ width: 85%; overflow: hidden; position: relative; left: 15%; margin-left: -0.625em;     padding-top: 0.5em;padding-bottom: 0.5em;}
            section div.tu_tu img{ width: 85%;}
            .mui-media img{ width: 25%;}
            section div.tu_tu p{ font-size: 0.8em; float: left; height: auto; overflow: hidden;    position: absolute;top: 0;right: 0;}
            section div.tu_tu span{ background:#fff;font-size: 1em; border: 1px solid #ff3366; color: #ff3366; margin-right: 0; margin-left: 0.3125em; padding: 0.3em 1em; border-radius: 0.3125em;}
            section div.tu_tu i{ font-size:1em; border: 1px solid #ccc; padding: 0.6em; color: #ccc;  margin-left: 0; border-radius: 0.3125em;}           
           .just_word{
               padding: 0 0.6em;
               border-radius: 0.3125em;
               border: 1px solid #fff;
           }
        </style>
	</head>

	<body>
		<header>
			<a><span class="leftleft"></span></a>
			<h1>我的发布</h1>
			<a class="just_word" onclick="openUrl('my_tuiguang.html','mtuiguang')">推广</a>
		</header>
		<section>
			<div class="zhankai">
				<h3>首页轮播图<i id="Acount">正在发布数：0</i></h3>
				<p><a href="javascript:;" onclick="openUrl('../user/moban_shengcheng.html?type=A1','fabumoshi')">发布</a><span class="bottombottom"></span></p>
			</div>
			<ul class="shouqi Acount">
                <li>没有促销发布，请首先发布促销</li>
            </ul>
		</section>
		<section class="sec_3">
			<div class="zhankai">
				<h3>超孕车房模块<i id="CDEFCount">正在发布数：0</i></h3>
				<p><span class="bottombottom quyu"></span></p>
			</div>
			<ul class="quyu shouqi">
				<li>
				    <div class="actType">
    					<h4>超市<i id="Ccount">正在发布数：0</i></h4>
    					<p>
    					    <a href="javascript:;" onclick="openUrl('../user/fabumoshi.html?type=C','fabumoshi')">发布</a>
    						<a href="###" class="guanli">管理</a>
    					</p>
					</div>
                    <div class="Ccount actList" style="display: none;">
                        <div class="tu_tu shouqi">
                                                                                         没有促销发布，请首先发布促销
                        </div>
                    </div>
				</li>
				<li>
				    <div class="actType">
    					<h4>母婴<i id="Dcount">正在发布数：0</i></h4>
    					<p>
    						<a href="javascript:;" onclick="openUrl('../user/fabumoshi.html?type=D','fabumoshi')">发布</a>
                            <a href="###" class="guanli">管理</a>
    					</p>
					</div>
                    <div class="Dcount actList" style="display: none;">
                        <div class="tu_tu shouqi">
                                                                            没有促销发布，请首先发布促销
                        </div>
                    </div>
				</li>
				<li>
				    <div class="actType">
    					<h4>车辆<i id="Ecount">正在发布数：0</i></h4>
    					<p>
    					    <a href="javascript:;" onclick="openUrl('../user/fabumoshi.html?type=E','fabumoshi')">发布</a>
    					    <a href="###" class="guanli">管理</a>
    					</p>
					</div>
					<div class="Ecount actList" style="display: none;">
                        <div class="tu_tu shouqi">
                                                                            没有促销发布，请首先发布促销
                        </div>
                    </div>
				</li>
				<li>
				    <div class="actType">
    					<h4>房车<i id="Fcount">正在发布数：0</i></h4>
    					<p>
    					    <a href="javascript:;" onclick="openUrl('../user/fabumoshi.html?type=F','fabumoshi')">发布</a>
    					    <a href="###" class="guanli">管理</a>
    					</p>
					</div>
					<div class="Fcount actList" style="display: none;">
					    <div class="tu_tu shouqi">
                                                                            没有促销发布，请首先发布促销
                        </div>
					</div>
				</li>
			</ul>
		</section>
		<section>
			<div class="zhankai">
				<h3>同城购模块<i id='Bcount'>正在发布数：0</i></h3>
				<p><a href="javascript:;" onclick="openUrl('../user/moban_shengcheng.html?type=B2','mobansc');">发布</a><span class="bottombottom"></span></p>
			</div>
			<ul class="shouqi Bcount">
                <li>没有促销发布，请首先发布促销</li>
            </ul>
		</section>
		<footer>
			<nav class="mui-bar mui-bar-tab">
				<a href="javascript:;" id="tcIndex">
                    <img src="../img/shouye2.png" />
                    <span class="mui-tab-label">首页</span>
                </a>
                <a href="javascript:;" id="myfabu">
                    <img src="../img/fabu2.png" />
                    <span class="mui-tab-label">发布</span>
                </a>
                <a class="action" href="javascript:;" id="myInfo">
                    <img src="../img/mine2.png" />
                    <span class="mui-tab-label">我的</span>
                </a>
			</nav>
		</footer>
		<script>
			$(document).ready(function() {
			    $("section .zhankai span").click(function(){
                    if($(this).parent().parent().parent().find(".shouqi").css("display") == "none"){
                        $(this).parent().parent().parent().find(".shouqi").show();
                        $(this).find("span").removeClass("bottombottom");
                        $(this).find("span").addClass("toptop");
                    }else{
                        $(this).parent().parent().parent().find(".shouqi").hide();
                        $(this).find("span").removeClass("toptop");
                        $(this).find("span").addClass("bottombottom");
                    }
                });
				$(".sec_3 ul li .actType span").click(function() {
                    if($(this).parent().parent().parent().find(".actList").css("display") == "none"){
                        $(this).parent().parent().parent().find(".actList").show();
                        $(this).removeClass("bottombottom");
                        $(this).addClass("toptop2");
                    }else{
                        $(this).parent().parent().parent().find(".actList").hide();
                        $(this).removeClass("toptop2");
                        $(this).addClass("bottombottom");
                    }
                });
                
                $(".sec_3 ul li .actType h4").click(function() {
                    if($(this).parents("li").find(".actList").css("display") == "none"){
                        $(this).parents("li").find(".actList").show();
                    }else{
                        $(this).parents("li").find(".actList").hide();
                    }
                });
                $(".sec_3 ul li .actType .guanli").click(function() {
                    if($(this).parents("li").find(".actList").css("display") == "none"){
                        $(this).parents("li").find(".actList").show();
                    }else{
                        $(this).parents("li").find(".actList").hide();
                    }
                });
                
				//轮播发布数
				$.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=A1,A2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Acount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                strHtml+='<li><div class="tu_tu shouqi">';
                                strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p></li>';
                            }
                            $(".Acount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })
                //同城购数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=B1,B2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Bcount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                if(dataResult.data[i].actType=='B1'){
                                    strHtml+='<li><div class="tu_tu shouqi">';
                                    strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                    strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p></li>';
                                }
                                if(dataResult.data[i].actType=='B2'){
                                    strHtml+='<li><div class="shouqi mui-media">';
                                    strHtml+='<img class="mui-media-object mui-pull-left" src="'+hostIp+dataResult.data[i].mainPic+'">';
                                    strHtml+='<div class="mui-media-body">'+dataResult.data[i].shopName;
                                    strHtml+='<p class="mui-ellipsis">'+dataResult.data[i].summary+'</p>';
                                    strHtml+='<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</i>';
                                    strHtml+='</div>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                    strHtml+='</div></li>';
                                }
                            }
                            $(".Bcount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })
                //超市数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=C1,C2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Ccount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                if(dataResult.data[i].actType=='C1'){
                                    strHtml+='<div class="tu_tu shouqi">';
                                    strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                    strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editGoods">编辑商品</span>&nbsp;<span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p></li>';
                                }
                                if(dataResult.data[i].actType=='C2'){
                                    strHtml+='<div class="shouqi mui-media">';
                                    strHtml+='<img class="mui-media-object mui-pull-left" src="'+hostIp+dataResult.data[i].mainPic+'">';
                                    strHtml+='<div class="mui-media-body">'+dataResult.data[i].shopName;
                                    strHtml+='<p class="mui-ellipsis">'+dataResult.data[i].summary+'</p>';
                                    strHtml+='<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editGoods" style="margin-right: 3.5em;">编辑商品</i>&nbsp;<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</i>';
                                    strHtml+='</div>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                            }
                            $(".Ccount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })
                //母婴数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=D1,D2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Dcount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                if(dataResult.data[i].actType=='D1'){
                                    strHtml+='<div class="tu_tu shouqi">';
                                    strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                    strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editGoods">编辑商品</span>&nbsp;<span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                                if(dataResult.data[i].actType=='D2'){
                                    strHtml+='<div class="shouqi mui-media">';
                                    strHtml+='<img class="mui-media-object mui-pull-left" src="'+hostIp+dataResult.data[i].mainPic+'">';
                                    strHtml+='<div class="mui-media-body">'+dataResult.data[i].shopName;
                                    strHtml+='<p class="mui-ellipsis">'+dataResult.data[i].summary+'</p>';
                                    strHtml+='<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editGoods" style="margin-right: 3.5em;">编辑商品</i>&nbsp;<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</i>';
                                    strHtml+='</div>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                            }
                            $(".Dcount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })
                //车辆数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=E1,E2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Ecount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                if(dataResult.data[i].actType=='E1'){
                                    strHtml+='<div class="tu_tu shouqi">';
                                    strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                    strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                                if(dataResult.data[i].actType=='E2'){
                                    strHtml+='<div class="shouqi mui-media">';
                                    strHtml+='<img class="mui-media-object mui-pull-left" src="'+hostIp+dataResult.data[i].mainPic+'">';
                                    strHtml+='<div class="mui-media-body">'+dataResult.data[i].shopName;
                                    strHtml+='<p class="mui-ellipsis">'+dataResult.data[i].summary+'</p>';
                                    strHtml+='<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</i>';
                                    strHtml+='</div>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                            }
                            $(".Ecount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })
                //房产数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=F1,F2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#Fcount").html('正在发布数：'+count);
                            var strHtml = "";
                            for(var i=0;i<count;i++){
                                if(dataResult.data[i].actType=='F1'){
                                    strHtml+='<div class="tu_tu shouqi">';
                                    strHtml+='<img src="'+hostIp+dataResult.data[i].mainPic+'" />';
                                    strHtml+='<p><span data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</span></p>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                                if(dataResult.data[i].actType=='F2'){
                                    strHtml+='<div class="shouqi mui-media">';
                                    strHtml+='<img class="mui-media-object mui-pull-left" src="'+hostIp+dataResult.data[i].mainPic+'">';
                                    strHtml+='<div class="mui-media-body">'+dataResult.data[i].shopName;
                                    strHtml+='<p class="mui-ellipsis">'+dataResult.data[i].summary+'</p>';
                                    strHtml+='<i data-type="'+dataResult.data[i].actType+'" data-id="'+dataResult.data[i].id+'" class="editInfo">编辑</i>';
                                    strHtml+='</div>';
                                    strHtml+='</div><p style="float: left;margin-left: 3em;height: 1.5em;line-height: 1.5em;">剩余时间'+ getLastTime(dataResult.data[i].endTime)+'天</p>';
                                }
                            }
                            $(".Fcount").html(strHtml);
                            $(".editInfo").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("moban_shengcheng.html?actId="+actId+"&type="+type,"moban_shengcheng");
                            })
                            
                            $(".editGoods").click(function(){
                                var actId = $(this).attr("data-id");
                                var type = $(this).attr("data-type");
                                openUrl("good_edit.html?type="+type+"&actId="+actId,"good_edit");
                            }) 
                        }
                    }
                })  
                //超孕车房数量
                $.ajax({
                    type:"post",
                    async:false,       
                    url:host+"/getActFBList.json?userId="+appcan.locStorage.getVal("userId")+"&actType=C1,C2,D1,D2,E1,E2,F1,F2&state=2",
                    data:"",
                    dataType:"json",
                    contentType: "application/json",
                    success : function(dataResult) {
                        var count = dataResult.data.length;
                        if(count>0){
                            $("#CDEFCount").html('正在发布数：'+count);
                        }
                    }
                })
                // 剩余天数
                function getLastTime(endTime){
                    if(!!endTime){
                        var now = new Date();
                        var bngDate = new Date(now.getFullYear(),now.getMonth(),now.getDate());
                        var endDate = new Date(endTime.substr(0,4),endTime.substr(5,2)-1,endTime.substr(8,2));
                        var days = (endDate.getTime()-bngDate.getTime())/24/60/60/1000 + 1;
                        return days;
                    }else{
                        return "0";
                    }
                }
			});
		</script>
	</body>
</html>